Cavern

 Cavern4D

 Cavernize

 Debug

 FilterInterfaces

 Filters

 Format

 Helpers

 QuickEQ

 Remapping

 SpecialSources

 Spoofer

 Utilities

 Virtualizer

 Atmosphere

 AudioClip3D

 AudioListener3D

 AudioListener3DInspector

 AudioSource3D

 CavernizeRealtime

 Channel

 Clip

  Channels

  Clip(float[], int, int)

  Clip(float[][], int)

  data

  GetData(float[], int, int)

  GetData(float[], int)

  GetData(float[][], int)

  GetDataNonLooping(float[], int)

  GetDataNonLooping(float[][], int)

  Length

  Name

  operator bool(Clip)

  SampleRate

  Samples

  SetData(float[], int)

  SetData(float[][], int)

 Environments

 Jack

 Listener

 QualityModes

 Rolloffs

 SeatAdaptation

 Source

class Clip

Audio content.
VisibilityPublic

Public functions

Constructor Clip(float[][] data, int sampleRate)Audio content.
Constructor Clip(float[] data, int channels, int sampleRate)Audio content.
bool GetData(float[][] data, int offset)Fills an array with sample data from the clip.
Clip data overflows, and free samples are filled with the beginning of the Clip.
bool GetData(float[] data, int offset)Fills an array with sample data from the clip.
Clip data overflows, and free samples are filled with the beginning of the Clip.
bool GetData(float[] data, int channel, int offset)Fills an array with a single channel's sample data from the clip.
Clip data overflows, and free samples are filled with the beginning of the Clip.
bool GetDataNonLooping(float[][] data, int offset)Fills an array with sample data from the clip.
Clip data doesn't overflow and free samples are filled with zeros.
bool GetDataNonLooping(float[] data, int offset)Fills an array with sample data from the clip. Clip data doesn't overflow and free samples are filled with zeros.
bool SetData(float[][] data, int offset)Overwrite samples in this clip.
bool SetData(float[] data, int offset)Overwrite samples in this clip.

Public static functions

implicit operator bool(Clip clip) Implicit null check.

Public properties

int ChannelsChannel count for the clip.
float Length The length of the clip in seconds.
string NameName of the clip.
int SampleRateSampling rate of the clip.
int Samples The length of the clip in samples, for a single channel.

Protected variables

float[][] dataSamples for each channel.

See also

CavernUnity DLL.Cavern.Format.AudioReader.ReadClip()Read the entire file, including the header, and pack it in a Clip.
CavernUnity DLL.Cavern.Format.AudioReader.ReadClipAfterHeader() Read the entire file and pack it in a Clip. The header should have been read before.
CavernUnity DLL.Cavern.SpecialSources.InfiniteSourceA Source with an intro Clip and a looping part after.
CavernUnity DLL.Cavern.SpecialSources.InfiniteSource3DAn AudioSource3D with an intro Clip and a looping part after.